//
//  SEXylinkAnswerViewController.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/6/29.
//

import UIKit

class SEXylinkAnswerViewController: UIViewController {

    var answerHandler: ((Bool) -> Void)?

    @IBOutlet weak var nameLabel: UILabel! {
        didSet {
            nameLabel.text = " "
        }
    }

    @IBOutlet weak var avatorImgView: UIImageView! {
        didSet {
            avatorImgView.layer.cornerRadius = 6
            avatorImgView.layer.masksToBounds = true
        }
    }

    @IBAction func agreeBtnAction(_ sender: UIButton) {
        answerHandler?(true)
    }

    @IBAction func rejectBtnAction(_ sender: UIButton) {
        answerHandler?(false)
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }


    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
